#pragma comment(lib, "Diesel.lib")
//#pragma comment(lib, "DieselComponents.lib")
#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "zdll.lib")
#pragma comment(lib, "dsound.lib")
#pragma comment(lib, "dxerr.lib")
#pragma warning(disable : 4995)

#pragma once
#include "base\Game.h"
#include "dxstdafx.h"
#include "base\Settings.h"
#include "GameCore.h"
#include <base\Controller.h>
#include <utils\Profiler.h>

class Blocks : public ds::CGame , public ds::KeyboardController {

public:	
	Blocks();
	virtual ~Blocks() {
		delete m_Core;
	}
	void initialize();
	void loadContent(ds::ResManager& resourceManager);
	void restore() {}
	void dispose() {}
	void OnKeyUp( WPARAM virtualKeyCode ) {}
	void OnKeyDown( WPARAM virtualKeyCode ) {}
	void OnChar( char ascii,unsigned int keyState ) {	
		if ( ascii == 'd' ) {
			gEngine->debug();
		}
		if ( ascii == 'p' ) {
			gProfiler->print();
		}
	}	
private:
	GameCore* m_Core;
};